<include file="public:header"/>
<script type="text/javascript">
_global.tgroup = {$tgroupid};
</script>
<!--<script src="http://101.201.73.190/lib/weitang/static/js/jquery/jquery.js"></script>-->
<!--<script type="text/javascript" charset="UTF-8" src="http://101.201.73.190/lib/weitang/static/js/artTemplate/artTemplate.js"></script>-->
    <!--<script type="text/javascript" charset="UTF-8" src="http://101.201.73.190/lib/weitang/static/js/artTemplate-plugin.js"></script> -->
     <!--<script type='text/html' id='Template'>-->
     <!---->
  <!--<option value="<%=id%>"><%=name%></option>-->
  <!--</script>-->
<style>
label{float:left; padding:0 10px 0 10px}
.mod_user .user-info input[type=radio]{width:20px}
.mod_user .user-info input[type=text],.mod_user .user-info input[type=password]{width:200px;margin:0 10px 0 0;}
</style>
<div id="bd">
    <div class="layout grid-s45m0 w1000 user-center">
        <div class="col-main">
            <div class="main-wrap">
                <div class="box J_TBox">
                    <div class="global-title">添加账户</div>
                    <div class="user-info">
                    <form class="J_form" action="{:U('user/add_user')}" method="post" enctype="multipart/form-data">
                        <div class="list">
                            <div class="name">团队级别 :</div>
                            <div class="content select-sz">
                                <select name="tgroup" id="tgroup">
                                    <option value="">请选择级别</option>
                                    <volist name="tgroup" id="g" key="$key">
                                    <if condition="in_array($key,$level)">
                                    <option value="{$key}">{$g}</option>
                                    </if>
                                    </volist>
                                </select>
                            </div>
                        </div>
                        <div class="list" id="higherUp" style="display:none;">
                            <div class="name">关联上级 :</div>
                            <div class="content"></div>
                        </div>

                         <!--<div class="list">-->
                            <!--<div class="name">关联上级 :</div>-->
                          <!--<tr>-->
                              <!--<td>-->
                                <!--<select id="krosrow0" name="tgroup_1"    onchange="ChangeCallback(this);" class="J_user_select" data-pid="0" data-selected="" data-uri="/lib/weitang/index.php/?g=admin&amp;m=team&amp;a=tgroup_child&amp;topkey=杭州test" data-name="tgroup_" data-nums="">-->
                                  <!--<option value="" selected="selected">&#45;&#45;请选择&#45;&#45;</option>-->
                                  <!--<option value="{$id}">{$username}</option></select>-->
                                <!--<select id="krosrow1"  name="tgroup_2"    onchange="ChangeCallback(this);" class="J_user_select mr10" data-pid="483" name="tgroup_2">-->
                                  <!--<option value="">&#45;&#45;请选择&#45;&#45;</option>-->
                                 <!--</select>-->
                                <!--<select id="krosrow2" name="tgroup_3" style="display:none" onchange="ChangeCallback(this);" class="J_user_select mr10" data-pid="488" name="tgroup_3">-->
                                  <!--<option value="">&#45;&#45;请选择&#45;&#45;</option>-->
                                  <!--</select>-->
                                    <!--<select id="krosrow3" name="tgroup_4" style="display:none" onchange="ChangeCallback(this);" class="J_user_select mr10" data-pid="488" name="tgroup_3">-->
                                  <!--<option value="">&#45;&#45;请选择&#45;&#45;</option>-->
                                  <!--</select>-->
                                    <!--<select id="krosrow4" name="tgroup_5" style="display:none" onchange="ChangeCallback(this);" class="J_user_select mr10" data-pid="488" name="tgroup_3">-->
                                  <!--<option value="">&#45;&#45;请选择&#45;&#45;</option>-->
                                  <!--</select>-->
                              <!--</td>-->
                          <!--</tr>-->
                        <!--</div>-->

                        <div class="list">
                            <div class="name">用户名 :</div>
                            <input type="text" placeholder="用户名" name="username"/>
                        </div>
                        <div class="list">
                            <div class="name">帐号手机 :</div>
                            <input type="text" placeholder="帐号手机" name="tele"/>
                        </div>
                        <div class="list">
                            <div class="name">收益比例 :</div>
                            <input type="text" placeholder="收益比例" name="pers" value="1" style="width:50px;"/> %
                        </div>
                        <div class="list">
                            <div class="name">帐号密码 :</div>
                            <input type="password" placeholder="帐号密码" name="password" />
                        </div>
                        <div class="list">
                            <div class="name">确认密码 :</div>
                            <input type="password" placeholder="确认密码" name="rpassword" />
                        </div>
                        
                        <div class="list">
                            <div class="name"></div>
                            <input type="submit" class="submit" value="保存" />
                        </div>
                    </form>
                    </div>
                </div>
            </div>
        </div>
        <include file="left" />
    </div>
</div>
<!--<script>-->
    <!--function ChangeCallback(_self)-->
<!--{-->
    <!--var parent_id = _self.value;-->
    <!--var id= $(_self).attr('value');-->
        <!---->
        <!--if(!id)-->
    <!--{-->
        <!--return;-->
    <!--}-->
        <!---->
        <!--var aid = $(_self).attr('id');-->
        <!--aid= aid.substr(aid.length-1,1)-->
           <!---->
        <!--aid=parseInt(aid)+1;-->
        <!--aid=aid.toString()-->
        <!--var url = 'http://lv.v-town.cc/index.php/?g=mall&a=tgroup_child&topkey={$topkey}';-->

    <!--$.getJSON(url,{'id':id},function(json)-->
    <!--{-->
        <!--var json2=json.data-->
        <!--$('#krosrow'+aid).empty().append(' <option value="">&#45;&#45;请选择&#45;&#45;</option>');-->
            <!--for(var item in json2)-->
        <!--{-->
            <!---->
            <!--//alert(json2[item])-->

            <!--var html = template.render('Template',json2[item]);-->
            <!--$('#krosrow'+aid).append(html);-->


        <!--}-->
       <!--// alert(json.status)-->
        <!--if(json.status==1){-->
            <!--$('#krosrow'+aid).css({ display: "inline-block" }); -->
        <!--}else{-->
            <!---->
            <!--aid= aid.substr(aid.length-1,1)-->
           <!---->
            <!--aid=parseInt(aid)-1;-->
            <!--var Things= $('#krosrow'+aid).nextAll()-->
          <!---->
            <!--Things.empty().css({ display: "none" })-->

            <!---->
        <!--}-->
                 <!---->


    <!--});-->
        <!---->
          <!---->

    <!---->
<!--}-->
    <!--</script>-->
<include file="public:footer"/>